package com.mqy.spring.jdkproxy;

/**
 * @author 13159 //作者
 * @version V1.0 //版本
 * @Project 2022.3.4SpringProxy
 * @Package com.mqy.spring
 * @Description:
 * @Date 2022/3/4 15:08//日期
 * @Motto:放下杂念,只为迎接明天更好的自己
 */

public class TestMain {
    public static void main(String[] args) throws Exception {
        /*UserService userService = BeanFactory.getService();
        userService.addUser();
        int i = userService.updateUser();
        System.out.println(i);*/
        UserService userService = BeanFactory.getService(UserServiceImpl.class);

        userService.addUser();
        userService.updateUser();

        OrderService service = BeanFactory.getService(OrderServiceImpl.class);

        service.addOrder();
        service.updateOrder();


        AddressService service1 = BeanFactory.getService(AddressServiceImpl.class);

        service1.addAdress();


    }
}
